package com.woniu.service;

import com.woniu.entity.Customer;
import com.woniu.util.ResponseUtil;

import java.util.List;
import java.util.Map;

public interface CustomerService  {

    ResponseUtil findAll();
    /**
     * 添加客户
     */
    ResponseUtil addCustomer(Customer customer);

    /**
     * 删除客户
     */
    ResponseUtil deleteCustomer(Integer customerId);

    /**
     * 更新客户
     */
    ResponseUtil updateCustomer(Customer customer);

    /**
     * 根据ID查询客户
     */
    ResponseUtil getCustomerById(Integer customerId);

    /**
     * 查询所有客户
     */
    List<Customer> getAllCustomers();

    /**
     * 模糊查询客户
     */
    List<Customer> searchCustomers(String keyword);

    /**
     * 停用客户
     */
    ResponseUtil disableCustomer(Integer customerId);

    /**
     * 启用客户
     */
    ResponseUtil enableCustomer(Integer customerId);
}
